package com.tz.zczc.web;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Author:Mark
 * @Description:
 * @Date: Created on 17:33 2018-12-5
 * @Modify by:
 */
@SpringBootApplication
@EnableTransactionManagement
@ComponentScan("com.tz")
public class App extends SpringBootServletInitializer {
  private final static Logger LOG = LoggerFactory.getLogger(App.class);

  @Override
  protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {

    return builder.sources(App.class);
  }

  public static void main(String[] args) {
    try {
      SpringApplication.run(App.class, args);
    } catch (Exception e) {
      // e.printStackTrace();
    }
    LOG.debug("=================================== 启动成功  start");
  }

}
